package ch04;
/**
 * Created by hasee on 2017/6/7.
 */
import java.util.Scanner;
public class Year {
    public static void main(String[]args){

        Scanner scan = new Scanner(System.in);
        System.out.println("输入年份：");
        int 年份 = scan.nextInt();
          if (年份%4==0)
            if(年份%100==0&&年份%400==0)
             System.out.println("YES");
            else
                System.out.println("NO");
          else
              System.out.println("NO");
              if(年份<1582)
                  System.out.println("没有公历");
    }
}
